package com.wy.demo.service;

public abstract class VideoService {
    /**
     * 处理文件服务
     * @param sourceMp4File MP4 文件
     * @param mp4TargetPath MP4 结果目标路径
     * @param sourceMp3File
     */
     protected abstract boolean handle(String sourceMp4File, String mp4TargetPath, String sourceMp3File);

     public boolean run(String sourceMp4File, String mp4TargetPath, String sourceMp3File){
         init();
         handle(sourceMp4File,mp4TargetPath,sourceMp3File);
         return true;
     }

      void init(){
          System.setProperty("org.bytedeco.javacpp.maxphysicalbytes", "0");
          System.setProperty("org.bytedeco.javacpp.maxbytes", "0");
      }
}
